package main

import (
	"fmt"
	"os"
	"strings"
)

func main() {
	fmt.Println("Hello, World!")
	//fmt.Println("len: " + len(os.Args))
	fmt.Println("len:", len(os.Args))
	for i := 0; i < len(os.Args); i++ {
		//fmt.Println("os.Args[", i, "] = ", os.Args[0])
		fmt.Printf("os.Args[%d] = %s \n", i, os.Args[i])
	}

	for _, arg := range os.Args[1:] {
		//fmt.Println("os.Args[", i, "] = ", os.Args[0])
		fmt.Printf("arg = %s \n", arg)
	}

	for i, arg := range os.Args[1:] {
		//fmt.Println("os.Args[", i, "] = ", os.Args[0])
		fmt.Printf("arg[%d] = %s \n", i, arg)
	}
	fmt.Printf("args = %s \n", strings.Join(os.Args[1:], "|"))
	fmt.Printf("args = %s \n", os.Args[1:])
}
